home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / etc / kde4 / kdm / Xreset < prev    next >
Encoding:
Text File  |  2008-10-24  |  484 b   |  16 lines

  1. #! /bin/sh
  2. # Xreset - run as root after session exits
  3.  
  4. # Reassign ownership of the console to root, this should disallow
  5. # assignment of console output to any random users's xterm. See Xstartup.
  6. #
  7. #chown root /dev/console
  8. #chmod 622 /dev/console
  9.  
  10. if grep -qs '^use-sessreg' /etc/kde4/kdm/kdm.options && \
  11.    which sessreg > /dev/null 2>&1; then
  12.       exec sessreg -d -l "$DISPLAY" -u /var/run/utmp \
  13.                    -h "`echo $DISPLAY | cut -d: -f1`" "$USER"
  14.       # NOTREACHED
  15. fi
  16.